package com.weiiew.common.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @TableName building_recipe
 */
@TableName(value = "building_recipe")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BuildingRecipe implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 配方-建筑物关系表
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 建筑物id
     */
    private Integer buildingId;
    /**
     * 配方id
     */
    private Integer recipeId;
}